package com.huike.service.impl;

import com.huike.entity.Admin;
import com.huike.entity.Rotation;
import com.huike.mapper.RotationMapper;
import com.huike.service.IRotationService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lwen
 * @since 2019-11-12
 */
@Service
public class RotationServiceImpl extends ServiceImpl<RotationMapper, Rotation> implements IRotationService {

	@Override
    public IPage<Rotation> listRotationByPage(int page, int limit) {
        Map<String, Rotation> map=new HashMap<String, Rotation>();
        QueryWrapper<Rotation> wrapper = new QueryWrapper<>();
        Page<Rotation> pages = new Page<>(page,limit);
	    IPage iPage = baseMapper.selectPage(pages,wrapper);
        return iPage;
    }
	
}
